//
//  TJRefreshController.h
//  CrossBorderPayment
//
//  Created by hc-101 on 2020/6/9.
//  Copyright © 2020 xtjun. All rights reserved.
//

#import "TJBaseController.h"
#import "TJRefreshHeader.h"
#import "TJRefreshFooter.h"

NS_ASSUME_NONNULL_BEGIN

@interface TJRefreshController : TJBaseController<UITableViewDataSource, UITableViewDelegate, UICollectionViewDataSource, UICollectionViewDelegate>

@property (strong, nonatomic) TJRefreshHeader *refreshHeader;
@property (strong, nonatomic) TJRefreshFooter *refreshFooter;

- (void)loadNewData;
- (void)loadMoreData;


@property (weak, nonatomic) UITableView *tableView;

@property (strong, nonatomic) UICollectionView *collectionView;
@property (strong, nonatomic) UICollectionViewFlowLayout *flowLayout;

@property (copy, nonatomic) NSString *emptyText;
@property (copy, nonatomic) NSString *emptyImageName;
@property (assign, nonatomic) UITableViewStyle tableViewStyle;
@property (assign, nonatomic) BOOL displayEmpty;
@property (assign, nonatomic) BOOL allowEmptyScroll;
@property (assign, nonatomic) CGFloat verticalOffset;



@end

NS_ASSUME_NONNULL_END
